<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use common\models\User;

/* @var $this yii\web\View */
/* @var $model common\models\User */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="user-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'username')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'password_hash')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'email')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'real_name')->textInput(['maxlength' => true]) ?>

    <!-- <?= $form->field($model, 'third_user_id')->textInput() ?>

    <?= $form->field($model, 'status')->dropDownList(User::itemAlias('status')) ?>

    <?= $form->field($model, 'available_money')->textInput(['maxlength' => true]) ?>
 -->
    <?php // $form->field($model, 'create_time')->textInput() ?>

    <?php // $form->field($model, 'reigster_ip')->textInput(['maxlength' => true]) ?>

    <?php // $form->field($model, 'last_login_time')->textInput() ?>

    <?php // $form->field($model, 'last_login_ip')->textInput(['maxlength' => true]) ?>

    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? '添加' : '更改', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
